﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Application.Base.Dto
{
    public class FreightTemplateList
    {
        public int id { get; set; }
        public string name { get; set; }
        public int chargetype { get; set; }
        public bool is_use { get; set; }
        public bool is_show { get; set; }
        public DateTime add_time { get; set; }
    }

    public class FreightTemplateDto
    {
        public int id { get; set; }
        public string name { get; set; }
        public int chargetype { get; set; }
        public int? shop_id { get; set; }
    }

    public class FreightTemplateInput
    {
        public string name { get; set; }
        public int chargetype { get; set; }
        public List<AreasDto> areas { get; set; }
        public List<AreasGroupDto> area_groups { get; set; }
    }
    public class AreasGroupDto
    {
        public int first_number { get; set; }
        public decimal first_fee { get; set; }
        public int add_number { get; set; }
        public decimal add_fee { get; set; }
        public List<AreasDto> areas { get; set; }
    }
    public class AreasDto
    {
        public string province { get; set; }
        public string province_code { get; set; }
    }
}
